<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>遍历数组</title>
</head>
<body>
    <div id="app">
        <ul>
            <li v-for="item,index in arr">{{index}}---{{item}}</li>
        </ul>
        <div>
            <p>{{users[0].header}}</p>
        </div>
    </div>

    <script src="../vue/vue.js"></script>
    <script>
        const app = new Vue({
            el:'#app',
            data:{
                arr:['aaa','bbb','ccc'],
                users:[
                    {
                        header:'img',
                        name:'spa'
                    }
                ]
            }
        });
    </script>
</body>
</html>l